// FlyingOBJ.h: interface for the FlyingOBJ class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FLYINGOBJ_H__2CFE58B1_6466_49EA_B2DD_C26A9802EADD__INCLUDED_)
#define AFX_FLYINGOBJ_H__2CFE58B1_6466_49EA_B2DD_C26A9802EADD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

enum
{
	FLY_ONHAND=0,
	FLY_LOADED,
	FLY_FIRE
};

class FlyingOBJ
{
public:
	int flyid;
	void Move(float factor);
	void Put();
	int status;
	INT ObjProc(LONG hMsg,LONG wParam,LONG lParam);
	FlyingOBJ();
	FlyingOBJ(D3DXMATRIX _start,DWORD tid,AddOnContainer *me,void *element);
	~FlyingOBJ();
	AddOnContainer *mesh;
	void *ele;
	void *lefthand;
	D3DXMATRIX pos;
	D3DXMATRIX npos;
	D3DXMATRIX crash;
	float factor;
	D3DXVECTOR3 oldpos;
	D3DXVECTOR3 start;
	D3DXVECTOR3 target;
	DWORD targetid;
	float oldlen;
	float len;
	float targetheight;
	float flyingheight;
	float remaintime;
	DWORD isremain;
	DWORD iscrash;
};

#endif // !defined(AFX_FLYINGOBJ_H__2CFE58B1_6466_49EA_B2DD_C26A9802EADD__INCLUDED_)
